﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cheenti
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            //string fileName;

            //XSD.JokeTables t = new XSD.JokeTables();

            //t.JokeCategories.AddJokeCategoriesRow("Category1", "CatDesc1", true);
            //t.JokeCategories.AddJokeCategoriesRow("Category2", "CatDesc1", true);
            //t.JokeCategories.AddJokeCategoriesRow("Category3", "CatDesc1", true);
            //t.JokeCategories.AddJokeCategoriesRow("Category4", "CatDesc1", true);
            //t.JokeCategories.AddJokeCategoriesRow("Category5", "CatDesc1", true);

            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[0], "Joke Title1", "Joke Body", "Joke Footer");
            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[1], "Joke Title2", "Joke Body", "Joke Footer");
            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[2], "Joke Title3", "Joke Body", "Joke Footer");
            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[3], "Joke Title4", "Joke Body", "Joke Footer");
            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[4], "Joke Title5", "Joke Body", "Joke Footer");
            //t.Jokes.AddJokesRow((XSD.JokeTables.JokeCategoriesRow)t.JokeCategories.Rows[4], "Joke Title6", "Joke Body", "Joke Footer");

            //fileName = System.IO.Path.Combine(Server.MapPath("."), "App_Data\\JokeTables.xml");
            //t.WriteXml(fileName);


            //fileName = System.IO.Path.Combine(Server.MapPath("."), "App_Data\\JokeCategories.xml");
            //t.JokeCategories.WriteXml(fileName);

            //fileName = System.IO.Path.Combine(Server.MapPath("."), "App_Data\\Jokes.xml");
            //t.Jokes.WriteXml(fileName);

            //t.Jokes.ReadXml(fileName);
        }
    }
}